<div class="zs-body" data-ng-init="
		formInit('items', {
			keyField:'userid',
			orderObject:{userid:0} 
		}) &&	
		treeFormInit('useredit', {
		ssn:'useredit',
		esn:'useredit',
		keyField:'applyID',
		queryObject:{},
		randomFields:['applyID'],
		pageSize:10,
		maxNavs:3,
		}) && loadData('useredit');">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">运维管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">用户修改申请</a>
        </div>
        <div class="option">
			<input type="button" class="zs-btn orange" value="申请审批" 
				ng-click="editRow('useredit', useredit.sRows[0]) && openWindow('edit3')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" placeholder="申请人名称" class="zs-input" ng-model="useredit.queryObject['applyUserName:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('useredit')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                    	<table>
	                        <thead>
			                    <tr>
			                   		<th>
			                        	<input id="allCheckbox" type="checkbox"
			                        		ng-click="selectAll('useredit','allCheckbox');">
			                        </th>
			                        <th>申请标题</th>
			                        <th>申请人名称</th>
			                        <th>申请时间</th>
			                        <th>申请人所在机构</th>
			                        <th>申请说明</th>
			                        <th>申请状态</th>
			                    </tr>
			                </thead>
			                <tbody>
			                    <tr ng-repeat="r in useredit.datas">
					                <td><input type="checkbox"
						                    ng-click="selectRow('useredit',r);"
						                    ng-model="r.selected" />
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.applyName"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.applyUserName"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.applyDate | asDate | date:'yyyy-MM-dd'"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.organizationName"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.applyInfo"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('useredit',r) && openWindow('edit');">
					                        <label ng-bind="r.stateName"></label>
					                    </a>
					                </td>
					            </tr>
			                </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='useredit'></ag-Page>
                </div>
            </div>
        </div>
		<div ag-Window id="edit" title="用户申请" width='900px' height='400px'>
	        <div class="zs-form-tab ibox">
			    <table style="width: 100%;">
			        <tbody>
			        	<tr>
	                        <td class="text" width="20%">申请标题</td>
	                        <td colspan="3" class="left" width="80%">
	                        	<label style="width: 600px;" ng-bind="useredit.editRow.applyName"></label></td>
	                    </tr>
			        	<tr>
                            <td class="text" width="20%">申请人ID</td>
                            <td class="left" width="30%">
                            	<label style="width: 300px;" ng-bind="useredit.editRow.applyUserId"></td>
                            <td class="text" width="20%">申请人名称</td>
                            <td class="left" width="30%">
                            	<label style="width: 300px;" ng-bind="useredit.editRow.applyUserName"></td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">申请时间</td>
                            <td class="left" width="30%">
                            	<label ng-bind="useredit.editRow.applyDate"></td>
                            <td class="text" width="20%">申请所在机构</td>
	                        <td class="left" width="30%">
	                        	<label ng-bind="useredit.editRow.organizationName"></td>
                        </tr>
                        <tr>
                        	<td class="text" width="20%">申请说明</td>
                           	<td colspan="3" class="left" width="80%">
								<label ng-bind="useredit.editRow.applyInfo"></td>
                        </tr>
                        <tr>
                            <td class="text" width="20%">申请附件</td>
                            <td colspan="3" class="left" width="80%">
								<label ng-bind="useredit.editRow.applyFile"></td>
                        </tr>
			        </tbody>
			    </table> 
				<table style="width: 100%;">
					<thead>
						<tr>
							
	                        <th width="13.5%" style="text-align: center;">账号</th>
	                        <th width="13.5%" style="text-align: center;">用户名</th>
	                        <th width="13.5%" style="text-align: center;">机构</th>
							<th width="13.5%" style="text-align: center;">部门</th>
							<th width="13.5%" style="text-align: center;">电话号码</th>
							<th width="13.5%" style="text-align: center;">系统权限</th>	
							<th width="13.5%" style="text-align: center;">修改类型</th>
						</tr>
					</thead>
					<tbody>
			        	<tr ng-repeat="x in useredit.editRow.items">
			        		<td>
			        			<label ng-bind="x.userid"></td>	
			                <td>
			                	<label ng-bind="x.userName"></td>
			                <td>
			                	<label ng-bind="x.organizationName"></td>
			                <td>
			                	<label ng-bind="x.departmentName"></td>
			                <td>
			                	<label ng-bind="x.tel"></td>
			                <td>
			                	<label ng-bind="x.registerServiceName"></td>
			                <td>
			                	<label ng-bind="x.applyTypeName"></td>
			        	</tr>
			        </tbody>
				</table>
			</div>
	    </div> 
		<div ag-Window id="edit3" title="用户申请审批" width='620px' height='500px'>
	        <div class="zs-form-tab ibox">
	        	<form name="formEdit" novalidate>
				    <table>
				        <tbody>
				        	
				        	<tr>
	                            <td class="text" width="20%">申请人名称</td>
	                            <td class="left" width="30%">
	                            	<label ng-bind = "useredit.editRow.applyUserName"></label></td>
	                            <td class="text" width="20%">申请人所在机构</td>
	                            <td class="left" width="30%">
	                            	<label ng-bind = "useredit.editRow.organizationName"></label></td>
	                        </tr>
	                        <tr>
	                            <td class="text" width="20%">申请说明</td>
	                            <td class="left" width="30%">
	                            	<label ng-bind = "useredit.editRow.applyInfo"></label></td>
	                            <td class="text" width="20%">申请状态</td>
	                            <td class="left" width="30%">
	                            	<label ng-bind = "useredit.editRow.stateName"></label></td>
	                        </tr>
	                        <tr>
	                        	<td class="text" width="20%">审批人</td>
	                            <td class="left" width="30%"><input type="text"
	                                ng-model="useredit.editRow.examineUserName" class="zs-input"></td>
	                            <td class="text" width="20%">审批时间</td>
	                            <td class="left" width="30%">
	                            	<ag-Datebox id='publishDate' editable='false' showcurday='true'
		                        		class="zs-input" style="width:180px;height: 28px"
		                        		ng-model="useredit.editRow.examineDate" >
									</ag-Datebox>
	                            </td> 
	                        </tr>
	                        <tr>
	                        	<td class="text" width="20%">审批信息</td>
	                            <td class="left"colspan="3"><input type="text"
	                                ng-model="useredit.editRow.examineInfo" class="zs-input"></td>
	                        </tr>
	                        <tr>
	                            <td colspan="4">
	                            	<input ng-show="useredit.editRow.state==2 || useredit.editRow.state==4"
	                            		type="button" name="ok" value="审批通过" class="zs-btn c-green" 
				                    	ng-click="passSave('useredit', useredit.editRow, saveCloseWindow)" />
				                    <input ng-show="useredit.editRow.state==2 || useredit.editRow.state==3" 
				                    	type="button" name="ok" value="审批不通过" class="zs-btn c-green" 
				                    	ng-click="noPassSave('useredit', useredit.editRow, saveCloseWindow)" />
	                            </td>
	                        </tr>         
				        </tbody>
				    </table>
				</form>
			</div>
	    </div>
    </div>
</div>